<form  method="get" id="" class="formbody">
        <div id="usual1" class="usual">
                <ul class="seachform1">
                <li>
                         <label>转账id</label>
                         <input type="text" name="id" value="" class="scinput1"/>
                </li>
                 <li>
                         <label>转账状态</label>
                         <select name="status" class="select">
                            <option value="-1">全部</option> 
	                        <option value="0">未转账</option> 
	                        <option value="1">转账成功</option>      
	                        <option value="2">转账失败</option>
                        </select>
                </li>
                </ul>
                             
                <ul class="seachform1">
                    <li class="sarchbtn">
                        <label>&nbsp;</label>
                        <input name="" id="searchBtn" type="submit" class="scbtn" value="查询"/>
                        <input name="" id="resetBtn"  type="reset" class="scbtn1" value="重置"/>
                    </li>
                </ul>
            
                <div class="formtitle">
                <span>转账列表--共查到<?php echo empty($page['total'])?0:$page['total'];?>条转账信息--</span>
         </div>
</form>

    <div class="rightinfo" >
    <div class="tools">
    	<ul class="toolbar">
        <a href="<?php echo site_url('hs_mng/transfers/add');?>"><li class="click"><span><img src="<?php echo base_url('houtai/images/t01.png');?>" /></span>转账</li></a>
        </ul>
    </div>
 <?php if (!empty($list)){?>
   <form id="" action="" method="post">
    <table class="tablelist">
    	<thead>
    	<tr>
	        <th style="width:100px;">转账id<i class="sort"><img src="<?php echo base_url('houtai/images/px.gif');?>" /></i></th>
	        <th>用户id</th>
	        <th>用户昵称</th>
	        <th>金额(单位：元)</th>
	        <th>状态</th>
	        <th>微信支付订单号</th>
	        <th>转账备注</th>
	        <th>失败原因</th>
	        <th>转账时间</th>
	        <th>创建时间</th>
        </tr>
        </thead>
        
        <tbody>
        	<?php foreach ($list as $k=>$v){?>
	        <tr>
		        <td><?php echo $v['id']?></td>
		        <td><?php echo $v['user_id']?></td>
		        <td><?php echo $v['nickname']?></td>
		        
		        <td><?php echo $v['amount']/100?></td>
		        <td><?php switch ($v['status']){
		        				case 0: echo '未转账';
		        				break;
		        				case 1: echo '<font style="color:green">转账成功</font>';
		        				break;
		        				case 2: echo '<font style="color:red">转账失败</font>';
		        				break;
		       				}
		        	?></td>
		        <td><?php echo $v['wx_payment_id']?></td>
		        <td><?php echo $v['remark'] ?></td>
		        <td><?php echo $v['wx_error']?></td>
		        <td><?php echo !empty($v['transfer_time'])?date('Y-m-d: H:i:s',$v['transfer_time']):0?></td>
		        <td><?php echo date('Y-m-d H:i:s',$v['create_time'])?></td>
	        </tr> 
        	<?php }?>
        </tbody>
    </table>
	</form>
   <?php }else{?>
     <span>没有相转账信息</span>
   <?php }?>
   
   <?php echo page($page['page'],$page['total'],$page['size'],$page['pagesize'],$class='page',$type=1); ?>
   </div>
   
   <script type="text/javascript" src="<?php echo base_url('houtai/js/layer/layer.js');?>" type="text/javascript"></script>
